﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<!-- topbar -->
<div class="top_bar">
	<div class="w_980">
        <p>您好<%=(Session["user"]!=null?((DomainModel.UserInfo)Session["user"]).u_name:"") %>,欢迎您来到嘉沃阅读馆！</p>
        <ul>
            <%
                if (Session["user"] != null)
                {
                    Response.Write("<li><a href=\"/vipcenter/basic.html?f=a1\">会员中心</a>|</li>");
                    Response.Write("<li><a href=\"/reg.html\">注册</a>|</li>");
                    Response.Write("<li><a href=\"/login/loginout.html\">注销</a>|</li>");
                    
                }
                else
                {
                    Response.Write("<li><a href=\"/login.html\">登陆</a>|</li>");
                    Response.Write("<li><a href=\"/reg.html\">注册</a>|</li>");
                }
                int count = 0;
                if (Session["car"] != null)
                {
                    IList list = (IList)Session["car"];
                    count = list.Count; 
                }
            %>
            <li><a href="/Search/libraryCar.html">借书车<%=(count>0?"("+count.ToString()+")":"") %></a></li>
        </ul>
    </div>
</div>

<!-- top -->
<div class="top">
	<div class="w_980">
    	<div class="nav">
        	<ul>
            	<li><a href="/index.html">首页</a>丨</li>
            	<li><a href="/list.html?l=0">中文书库</a>丨</li>
            	<li><a href="/list.html?l=1">英文书库</a>丨</li>
            	<li><a href="/list.html?e=0">电子书库</a>丨</li>
            	<li><a href="/template/choosebook.html">选书指导</a>丨</li>
            	<li><a href="/template/read.html">阅读指导</a>丨</li>
            	<li><a href="/template/aboutjoy.html">关于阅读馆</a></li>
            </ul>
        </div>
        <a href="http://jwedu.co" class="goto_jw">进入嘉沃教育哦</a>
    </div>
</div>